﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using HiLand.Utility.IO;

namespace WinDemo
{
    public partial class 测试文件是否被占用 : Form
    {
        public 测试文件是否被占用()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            DialogResult result = this.openFileDialog1.ShowDialog();
            if (result == DialogResult.Yes || result == DialogResult.OK)
            {
                string fileName = this.openFileDialog1.FileName;
                this.button1.Text = FileHelper.ConfirmIsOccupied2(fileName).ToString();
            }
        }
    }
}
